package com.weixin.common.core.utils;

import com.weixin.common.core.constant.CacheConstants;
import com.weixin.common.core.constant.TokenConstant;

import javax.servlet.http.HttpServletRequest;

/**
 * @version 1.0.0
 * @className: TokenUtil
 * @description: Token工具类
 * @author: zhangjunfa
 * @date: 2023/5/27 16:15
 */
public class TokenUtil {
    /**
     * 获取Token缓存redis前缀
     *
     * @param token 用户唯一标识
     * @return
     */
    public static String getRedisCacheKey(Object token) {
        return CacheConstants.LOGIN_TOKEN_KEY + token;
    }


}
